package com.leonardo.beanme;

public class OptionList {
	
	private String[] options;
	private int selectedIndex;
	
	public OptionList(String [] options) {
		this.options = options;
		this.selectedIndex = 0;
	}
		
	public String[] getOptions() {
		return options;
	}
	
	public int getSelectedIndex() {
		return selectedIndex;
	}
	
	public void select(int index) {	
		selectedIndex = index;
	}
	
	public String getSelected() {
		return options[selectedIndex];
	}
	
}
